package com.parking.mgr.useraccount.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.parking.mgr.common.util.IdUtils;
import com.parking.mgr.useraccount.model.entity.UserPassportEntity;
import com.parking.mgr.useraccount.model.mapper.UserPassportMapper;
import com.parking.mgr.useraccount.service.UserPassportService;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserPassportServiceImpl
 * @Description 用户账号
 * @Auther: zhijianpu
 * @Date: 2023/5/25
 */
@Service
public class UserPassportServiceImpl extends ServiceImpl<UserPassportMapper, UserPassportEntity> implements UserPassportService {

    @Override
    public String add() {
        // 保存用户账户ID
        UserPassportEntity userPassportEntity = new UserPassportEntity();
        String passportId = IdUtils.getId();
        userPassportEntity.setId(passportId);
        userPassportEntity.setId(IdUtils.getId());
        this.save(userPassportEntity);
        return passportId;
    }
}
